﻿using ROSBridgeLib;
using ROSBridgeLib.sensor_msgs;
using System.Collections;
using ROSBridgeLib.std_msgs;
using ROSBridgeLib.geometry_msgs;
using SimpleJSON;
using UnityEngine;
using System.IO;

public class OdomSubscribler : ROSBridgeSubscriber {



    public new static string GetMessageTopic() {
        return "cmd_vel";
    }  

    public new static string GetMessageType() {
        return "geometry_msgs/Twist";
    }

    public new static ROSBridgeMsg ParseMessage(JSONNode msg) {
        return new TwistMsg(msg);
    }
    public new static void CallBack(ROSBridgeMsg msg) {
       
        Debug.Log(msg);
    }
}
